package com.tan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.test.context.ContextConfiguration;

@ContextConfiguration//配置类
@ComponentScan(basePackages = {"com.tan"})//扫描包下的ioc和di注解
//cglib动态代理
//@EnableAspectJAutoProxy(proxyTargetClass = true)//开启aop注解扫描
//默认jdk动态代理
@EnableAspectJAutoProxy
public class MyConfig {

}
